#ifndef _CHIP_H
#define _CHIP_H
#define  TX_SWING_200MHZ		0x50
#define  TX_SWING_300MHZ		0x50
#define  TX_SWING_600MHZ		0x60    /*0x20 */
#define  TX_TAP_SWING_200MHZ		0x00
#define  TX_TAP_SWING_300MHZ		0x43
#define  TX_TAP_SWING_600MHZ		0xc8    /*0x0F */
#define  Junior_TX_TAP_SWING_600MHZ		0xc8    /*0x0F */
#define  TX_PREEMPHASIS			0xb0
#define  TX_NOPREEMPHASIS		0xa0
#define LT86101UXE			0x70
//#define LT86101UXE			0x38
#define     FREQ_DIV_200MHZ		(u32) 0x030d40
#define     FREQ_DIV_300MHZ		(u32) 0x053020
#define     CLK_CHANGE_MARGIN		(24 * 1024)      /*CLK_CHANGE_MARGIN*1KHz */
#define     CLK_ACTIVE_MIN_LIMIT	(16 * 1024)     /*CLK_ACTIVE_MIN_LIMIT should be lower than 25M(480P). */
extern u32 ulFreqIndicate();
extern bool bHdmiVerChangeDet( void );
extern bool bTmdsClkChangeDet( void );
extern void vdTx_Drive_Config( Fun_Status State );
extern void vdHdmiVerStatusDet( void );
extern void vdRxPllTestSet( void );
extern void vdRxPllCalSet( void );
extern void vdRxRst( void );
extern void vdPiRst( void );
extern void vdSet_RX_HPD( Pin_Status State );
extern void vdInitLT86102UX( void );
extern bool bTmdsClkStableDet( u8 addrs );
extern void vdTxScdcWriteHandle( LT86102UX_TX tx );
extern void vdRxTermCalibration( void );
extern void vdTxTermCalibration( void );
extern void vdRxPllStepSet( void );
extern void vdRxPllCalibration( u8 addr, u8 i );
extern void vdTxPllCalibration( void );
extern void vdTxStatusSet();
extern void LT86104UX_RXOffsetCalibration( void );
extern void LT86104UX_SetRXOfsVal(void);
extern void Chip_Resolution_Det(void);

#endif
